import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  routes: [
    {
        path: '/',
        name: 'index',
        meta: {
            title: '首页',
            auth:false,//需要登录
        },
        component:resolve=>require(['@/page/Index/index'],resolve)
    },{
        path: '*',
        name: '404',
        meta: {
            title: '404',
            auth:false,//需要登录
        },
        component:resolve=>require(['@/components/error'],resolve)
    }
  ]
})
